package com.hx.base.others;

/**
 * @author jxlgcmh
 * @date 2020-03-12 14:01
 * @description
 */
public class TryCatchTest {
    public static void main(String[] args) {
        System.out.println(getValue());
    }

    public static int getValue() {
        int i = 0;
        try {
            i++;
            return i;
        } catch (Exception e) {
            return i;
        } finally {
            i += 2;
            return i;
        }
    }
}
